package com.wuchao.springs.ioc;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author wuchao66
 * @Date 2023/10/12 9:18
 * @PackageName:com.wuchao.springs.ioc
 * @ClassName: T
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class T {
    public static void main(String[] args) {
//        Dog dog;
       // dog.show();
//        Dog dog = new Dog();
//        Dog dog1 = new Dog();
//        dog.show("麻辣烫");//耦合
        //
     //   cat
        ClassPathXmlApplicationContext cpac =
                new ClassPathXmlApplicationContext("ApplicationContext.xml");
        //装箱 拆箱 object--int
        Dog dog = (Dog) cpac.getBean("dog");
        dog.show();

    }
}
